@extends('adminDialog')

@section('content')
    <form action="{{url('admin/users/accountchange')}}" method="POST" class="J_ajaxForm">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">
        <input type="hidden" name="user_id" value="{{ $user->id }}">
        <div class="pop_cont pop_table">
            <table width="100%">
                <tbody>
                <tr>
                    <th><label for="name">账号</label></th>
                    <td>
                        {{ $user->name }}
                    </td>
                </tr>

                <tr>
                    <th><label for="cash">余额变更：</th>
                    <td>
                        <input type="number" name="cash" id="cash" class="input length_2" value="0"/>
                    </td>
                </tr>
                @if (!in_array($user->user_type, [2,3,5,6]))
                <tr>
                    <th><label for="card">会员卡变更：</th>
                    <td>
                        <input type="number" name="card" id="card" class="input length_2" value="0"/>
                    </td>
                </tr>
                @endif
                <tr>
                    <th><label for="coin">金币变更：</th>
                    <td>
                        <input type="number" name="coin" id="coin" class="input length_2" value="0"/>
                    </td>
                </tr>

                <tr>
                    <th><label for="intro">备注信息：</label></th>
                    <td>
                        <textarea name="intro" id="intro" style="width:250px; resize:none;"></textarea>
                    </td>
                </tr>

                </tbody>
            </table>
        </div>

        <div class="pop_bottom cc">
            <button type="reset" class="btn fr" id="J_dialog_close">取消</button>
            <button type="submit" class="btn btn_submit J_ajax_submit_btn fr mr10" id="J_dialog_close">提交</button>
        </div>
    </form>
@stop

@section('style')
    <style>
        .body_none {width: 400px;}
    </style>
@stop
